{include file="head" /}

<body ng-app="starter" ng-controller="AppCtrl"
      class="grade-a platform-browser platform-ios platform-ios9 platform-ios9_1 platform-ready">
<ion-nav-view class="view-container" nav-view-transition="ios" nav-view-direction="none" nav-swipe="">
    <ion-tabs class="tabs-icon-top navbar pane tabs-bottom tabs-standard" abstract="true" nav-view="active">
        <div class="tab-nav tabs">
            <a href="/" class="iconfont icon--6 tabnone tab-item " style=""><span
                    class="tab-title ng-binding hangqing">{:lang('Commodity')}</span></a>
            <a href="/index/order/hold/token/e7becc63df08437340010971067068bf.html" class="iconfont icon--7 tabnone tab-item " style=""><span
                    class="tab-title ng-binding jiaoyijilu">{:lang('Record')}</span></a>
            <a href="/index/user/index/token/e7becc63df08437340010971067068bf.html" class="iconfont icon--8 tabnone tab-item tab-item-active"
               style="">
                <!--<span class="tab-title ng-binding" >个人账户￥59147.20</span>--><span
                    class="tab-title ng-binding">{:lang('User')}</span></a>
        </div>
        <ion-nav-view name="tab-profile" class="view-container tab-content" nav-view="active" nav-view-transition="ios"
                      nav-view-direction="swap" nav-swipe="">
            <ion-view>
                <ion-content
                        class="content-background scroll-content ionic-scroll scroll-content-false has-tabs user-center-main"
                        scroll="false">
                    <div class="user-center">
                        <div class="my-center-head">
                            <div class="user clearfix">
                                <div class="fl img"><img src="/static/public/images/applogo.png" alt=""></div>
                                <dl class="userinfo">
                                    <dt>{$userinfo.username}(ID:{$userinfo.uid})</dt>
                                    <dd>
                                        余额：${$userinfo.usermoney}								</dd>
                                </dl>
                            </div>
                            <a href="/index/login/respass.html" class=" set-link">
                                <img src="/static/public/images/user/icon-set.png" alt="" width="12">{:lang('set')}								</a>
                            <div class="usdt flex">
                                <dl>
                                    <dt>{:lang('Number')}</dt>
                                    <dd>{$hold['count']}</dd>
                                </dl>
                                <dl>
                                    <dt>{:lang('Amount')} </dt>
                                    <dd>{$hold['sum']}</dd>
                                </dl>
                            </div>
                        </div>
                        <div class="my-center-section2">
                            <!--
                            <a href="/index/user/ercode.html" class=""><img src="/static/public/images/user/invite.png" alt=""
                                    width="100%"></a>

                                    -->
                            <ul class="links clearfix">
                                <li class="fl link1">
                                    <a href="/index/user/newwithdraw.html">{:lang('cashWithdrawal')}</a>
                                </li>
                                <li class="fr link2">
                                    <a href="/index/user/pay.html">{:lang('recharge')}</a>
                                </li>
                            </ul>
                        </div>
                        <div class="my-center-section3">
                            <a href="/index/order/hold.html" class="common-module clearfix">
                                <div class="left fl">
                                    <img src="/static/public/images/user/jilu.png" alt="" class="icon-img">{:lang('transactions')}									</div>
                                <div class="right fr"></div>
                            </a>
                            <a href="/index/user/reglist.html" class="common-module clearfix">
                                <div class="left fl">
                                    <img src="/static/public/images/user/chongzhi.png" alt="" class="icon-img">{:lang('ChargeRecord')}									</div>
                                <div class="right fr"></div>
                            </a>

                            <a href="/index/user/cashlist.html" class="common-module clearfix">
                                <div class="left fl">
                                    <img src="/static/public/images/user/icon-my3.png" alt="" class="icon-img">{:lang('WithdrawalsRecord')}									</div>
                                <div class="right fr"></div>
                            </a>

                            <a href="/index/user/ercode.html" class="common-module clearfix ">
                                <div class="left fl">
                                    <img src="/static/public/images/user/icon-my6.png" alt="" class="icon-img">{:lang('inviteFriends')}									 </div>
                                <div class="right fr"></div>
                            </a>

                            <!--
                              <a href="javascript:void(0);" class="common-module clearfix">
                                  <div class="left fl">
                                      <img src="/static/public/images/user/icon-my4.png" alt="" class="icon-img">邀请记录
                                  </div>
                                  <div class="right fr"></div>
                              </a>



                              <a href="javascript:void(0);" class="common-module clearfix">
                                  <div class="left fl">
                                      <img src="/static/public/images/user/coupon.png" alt="" class="icon-img">代金券
                                  </div>
                                  <div class="right fr"></div>
                              </a>
                              -->
                            <a href="/index/user/about.html" class="common-module clearfix">
                                <div class="left fl">
                                    <img src="/static/public/images/user/about.png" alt="" class="icon-img">{:lang('AboutUs')}									</div>
                                <div class="right fr"></div>
                            </a>

                            <a href="/index/user/kefu.html" class="common-module clearfix">
                                <div class="left fl">
                                    <img src="/static/public/images/user/icon-my5.png" alt="" class="icon-img">{:lang('onlineService')}									</div>
                                <div class="right fr"></div>
                            </a>
                            <a href="javascript:;;"onclick="app_exit()"  class="common-module clearfix">
                                <div class="left fl">
                                    <img src="/static/public/images/user/tuichu.png" alt="" class="icon-img">{:lang('Quit')}									</div>
                                <div class="right fr"></div>
                            </a>
                        </div>
                        <div class="modal">
                            <div class="modal-body">
                                <img src="/static/public/images/user/code-bg" alt="" width="100%">
                                <div class="code-img" id="qrcode"></div>
                            </div>
                        </div>
                    </div>
                </ion-content>
            </ion-view>
        </ion-nav-view>
    </ion-tabs>
</ion-nav-view>
<!--入金-->
</body>

</html>
<script src="/static/index/js/lk/user.js"></script>
<script src="/static/public/js/user/qrcode.min.js"></script>
<script>
    $(function () {
        var width = $(document).width() * 0.52;
        var host = "0";
        if (host == 0) {
            var domain = window.location.host;
        } else {
            var domain = host;
        }
        new QRCode(document.getElementById("qrcode"), {
            text: "http://xappqd.hht08.com?fid=618897",
            width: width,
            height: width
        });
        $(".modalShow").click(function () {
            //二维码
            // $.ajax({
            //     type: 'get',
            //     url: '/user/qrcode',
            //     success: function (data) {
            //         $('.code-img').html('<img id="img" src="' + data +
            //             '" alt="" width="100%">');
            //     }
            // })
            $(".modal").addClass("show");
        })
        $(".modal").click(function () {
            $(this).removeClass("show");
        })
    })
    //长按保存二维码
    $(".modal").on({
        touchstart: function (e) {
            // 长按事件触发
            timeOutEvent = setTimeout(function () {
                timeOutEvent = 0;
                var imageUrl = $('#img').attr('src');
                //imageUrl = "http://" + "www.huobiying666.com" + imageUrl;
            }, 400);
            //长按400毫秒
        },
        touchmove: function () {
            clearTimeout(timeOutEvent);
            timeOutEvent = 0;
        },
        touchend: function () {
            clearTimeout(timeOutEvent);
            if (timeOutEvent != 0) {
                $(this).removeClass("show");
            }
            return false;
        }
    })

</script>
</html>